home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Transactor
/
Transactor_22_1988_Transactor_Publishing.d64
/
file stripper
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
639b
|
22 lines
100 rem easyscript file stripper
110 rem by eric giguere
120 rem
130 print"[147]input filename: ";:gosub 270: fi$=left$(in$,16)
140 print"output filename: ";:gosub 270: fo$=left$(in$,16)
150 fl=0: print"opening the files..."
160 open15,8,15,"i0": gosub 280: if e then 300
170 open2,8,2,"0:"+fi$+",s,r": gosub 280: if e then 300
180 open3,8,3,"0:"+fo$+",s,w": gosub 280: if e then 300
190 get#2,a$: a=asc(a$+chr$(0)): ok=st
200 if a=128 then get#2,a$: if a$="*" then fl=1: goto 250
210 if fl=1 and a=13 then fl=0: goto 250
220 if (a<32 and a<>13) or a>218 then 250
230 if a>95 and a<192 then 250
240 if fl=0 then print#3,a$;
250 if ok=0 then 190
260 close2: close3: close15: end
270 open1,0: input#1,in$: close1: print: return
280 input#15,e,e$: if e<20 then e=0
290 return
300 print"disk error: ";e;e$: goto 240